class CreateTwitterProfiles < ActiveRecord::Migration
  def change
    create_table :twitter_profiles do |t|

      t.string :uid,
               :access_token,
               :access_token_secret,
               :screen_name,
               :name,
               :location,
               :image,
               :description,
               :website
      t.boolean :follows_cuxibamba

      t.references :user

      t.timestamps
    end

     # indexes:
    add_index :twitter_profiles, :uid, :unique => true

  end
end
